
var game_file_list = [
    //以下为自动修改，请勿修改
    //----auto game_file_list start----
	"libs/modules/egret/egret.js",
	"libs/modules/egret/egret.native.js",
	"libs/modules/eui/eui.js",
	"libs/modules/res/res.js",
	"libs/modules/game/game.js",
	"libs/modules/game/game.native.js",
	"bin-debug/AssetAdapter.js",
	"bin-debug/component/DisplayComponent.js",
	"bin-debug/component/FightAttri.js",
	"bin-debug/component/ItemComponent.js",
	"bin-debug/component/Monster.js",
	"bin-debug/component/Package.js",
	"bin-debug/component/Pet.js",
	"bin-debug/component/Player.js",
	"bin-debug/config/Build/410000.js",
	"bin-debug/config/character/100000.js",
	"bin-debug/config/Development/460000.js",
	"bin-debug/config/equipment/250000.js",
	"bin-debug/config/event/470000.js",
	"bin-debug/config/map/420000.js",
	"bin-debug/config/map/420001.js",
	"bin-debug/config/map/420002.js",
	"bin-debug/config/map/420003.js",
	"bin-debug/config/map/420004.js",
	"bin-debug/config/map/420005.js",
	"bin-debug/config/map/420006.js",
	"bin-debug/config/map/420007.js",
	"bin-debug/config/map/420008.js",
	"bin-debug/config/map/420009.js",
	"bin-debug/config/mapLattice/600000.js",
	"bin-debug/config/mapLattice/610000.js",
	"bin-debug/config/mapLattice/620000.js",
	"bin-debug/config/mapLattice/630000.js",
	"bin-debug/config/mapLattice/640000.js",
	"bin-debug/config/mapLattice/650000.js",
	"bin-debug/config/mapLattice/660000.js",
	"bin-debug/config/mapLattice/670000.js",
	"bin-debug/config/monster/300001.js",
	"bin-debug/config/pet/110000.js",
	"bin-debug/config/petEgg/130000.js",
	"bin-debug/config/prop/200000.js",
	"bin-debug/config/prop/200100.js",
	"bin-debug/config/prop/200200.js",
	"bin-debug/config/prop/200300.js",
	"bin-debug/config/scene/440000.js",
	"bin-debug/config/skill/120000.js",
	"bin-debug/config/skill/121000.js",
	"bin-debug/config/skill/122000.js",
	"bin-debug/config/smithyItem/270000.js",
	"bin-debug/config/strengthen/260001.js",
	"bin-debug/config/strengthen/260002.js",
	"bin-debug/config/strengthen/260003.js",
	"bin-debug/config/strengthen/260004.js",
	"bin-debug/config/strengthen/260005.js",
	"bin-debug/config/task/440001.js",
	"bin-debug/config/viewDisplay/400000.js",
	"bin-debug/core/AdventureHandle.js",
	"bin-debug/core/BattleHandle.js",
	"bin-debug/core/BattleHandle2.js",
	"bin-debug/core/PlayerHandle.js",
	"bin-debug/core/SkillHandle.js",
	"bin-debug/core/UtilsHandle.js",
	"bin-debug/Data.js",
	"bin-debug/LoadingUI.js",
	"bin-debug/Main.js",
	"bin-debug/ThemeAdapter.js",
	"bin-debug/view/AdventureInfoView.js",
	"bin-debug/view/ArsenalView.js",
	"bin-debug/view/BagView.js",
	"bin-debug/view/BattleView.js",
	"bin-debug/view/BattleView2.js",
	"bin-debug/view/BuildView.js",
	"bin-debug/view/DevelopView.js",
	"bin-debug/view/FarmLandView.js",
	"bin-debug/view/FuseView.js",
	"bin-debug/view/LoginView.js",
	"bin-debug/view/MainView.js",
	"bin-debug/view/MapEntranceView.js",
	"bin-debug/view/MapView.js",
	"bin-debug/view/PetHouseView.js",
	"bin-debug/view/PlayerInfoView.js",
	"bin-debug/view/SmithyView.js",
	"bin-debug/view/StoreView.js",
	//----auto game_file_list end----
];

var window = {};

egret_native.setSearchPaths([""]);

egret_native.requireFiles = function () {
    for (var key in game_file_list) {
        var src = game_file_list[key];
        require(src);
    }
};

egret_native.egretInit = function () {
    egret_native.requireFiles();
    egret.TextField.default_fontFamily = "/system/fonts/DroidSansFallback.ttf";
    //egret.dom为空实现
    egret.dom = {};
    egret.dom.drawAsCanvas = function () {
    };
};

egret_native.egretStart = function () {
    var option = {
        //以下为自动修改，请勿修改
        //----auto option start----
		entryClassName: "Main",
		frameRate: 30,
		scaleMode: "showAll",
		contentWidth: 540,
		contentHeight: 960,
		showPaintRect: false,
		showFPS: false,
		fpsStyles: "x:0,y:0,size:30,textColor:0x00c200,bgAlpha:0.9",
		showLog: false,
		logFilter: "",
		maxTouches: 2,
		textureScaleFactor: 1
		//----auto option end----
    };

    egret.native.NativePlayer.option = option;
    egret.runEgret();
    egret_native.Label.createLabel(egret.TextField.default_fontFamily, 20, "", 0);
    egret_native.EGTView.preSetOffScreenBufferEnable(true);
};